/* 
 * File:   Editor.h
 * Author: agu
 *
 * Created on 4 de junio de 2014, 18:18
 */

#ifndef EDITOR_H
#define	EDITOR_H
#include <gtkmm-3.0/gtkmm.h>

#include "NuevaCampania.h"

class Editor:public Gtk::Window {
public:
    Editor(Glib::RefPtr<Gtk::Application> aplicacion);
    void run();
    virtual ~Editor();
private:
    void loadWidgets();
    void connectWidgets();
    void close();
    void newCampain();
    void deleteCampain();
    Glib::RefPtr<Gtk::Application> app;
    Gtk::Window* window;
    Glib::RefPtr<Gtk::Builder> builder;
    Gtk::Button *button_new,*button_del,*button_quit;
    NuevaCampania newCamp;
};

#endif	/* EDITOR_H */

